package javaTransactionAPI;

import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateless
@Remote
public class StudentManagerBean implements StudentManager {

	@PersistenceContext
	private EntityManager em;
	
	
	@Override
	public void addStudent(Student student) {
		em.persist(student);
	}

}
